package com;

public class test {
    public static void main(String[] args) {
        String S = "123456789";
        System.out.println(S.substring(S.length()-1));
    }
}
